package com.wf.springboot.common.result;

import lombok.Getter;

/**
 * 返回响应信息枚举
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "ok"),
    REQUEST_ERROR(400, "请求方式错误"),
    UN_AUTHORIZED(401, "未授权"),
    NO_PERMISSION(403, "没有权限"),
    ERROR(500, "服务器出错，请稍后重试");

    private Integer code;
    private String msg;

    ResultCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
